import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    current:0,
    mission:1,
    studentId:2333219007,
    options: [] // 存储学生列表
  },
  getters: {
  },
  mutations: {
    updateCurrentClass(state, currentClass) {
      state.current = currentClass;
    },
    updateMission(state, missionType) {
      state.mission = missionType;
    },
    updateStudentId(state, studentId) {
      state.studentId = studentId;
    },
    updateOptions(state, options) {
      state.options = options;
    }
  },
  actions: {
  },
  modules: {
  }
})
